<?php

	
	class blogAction extends Action {
		
		
		public function index(){
			$dao = D("blogview","Home");
			$list = $dao->findAll("blogs.userid=user.id");
			$this->assign("list",$list);
			$this->display();
		}
		
		public function getblogs(){
			
		}
		
		public function deleteblog(){
			$ids = $_POST["ids"];
			$dao = D("blogs","Home");
			if($dao->delete("id in ($ids)")){
				$this->success("删除成功");
			}else{
				$this->error("操作失败");
			}
		}
	}
?>